import Vue from 'vue'
import App from './App.vue'
import './registerServiceWorker'
import router from './router'
import store from './store'

Vue.config.productionTip = false

import '@/assets/styles/index.scss'

import 'lib-flexible'

// Vant  组件   
import Vant from 'vant'
Vue.use(Vant)
import 'vant/lib/index.css'

import { Dialog } from 'vant';
Vue.use(Dialog);

//全局注册组件
import '@/components'

import {axios,baseURL} from '@/api/http'

import {ajax} from '@/api/index'
Vue.prototype.$ajax = ajax

Vue.prototype.$axios = axios;
Vue.prototype.$host = baseURL;

//图片懒加载
import {Lazyload,ImagePreview} from 'vant';
Vue.use(Lazyload,{
  lazyComponent: true,
  
})

Vue.use(ImagePreview)

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
